
#include <iostream>
#include <cassert>

using namespace std;

struct base
{
    void pnt() { cout << "hello" << endl; }
};

struct derive : base
{
    void check() { pnt(); }
};

int main()
{
    derive a;
    a.check();
    a.pnt();
    return 0;
}